package edu.gyc.hiwxm.util;


import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Random;

public class FileNameUtil {
    private static Random random = new Random();
    public static String getRandomFileName(){

        Date date = new Date();
        //Date 类型的时间使用SimpleDateFormat
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        return sdf.format(date)+"_"+ random.nextInt(10000);
    }
}
